/* common.css */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f4f4f4;
}

/* 顶部导航栏样式 */
.top-navbar {
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
}

.top-navbar a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    transition: background-color 0.3s;
}

.top-navbar a:hover {
    background-color: #555;
}

.top-navbar a.active {
    background-color: #007BFF;
}

.top-navbar #logout-btn {
    margin-left: auto;
}

/* 侧边栏样式 */
.side-navbar {
    background-color: #f4f4f4;
    width: 200px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    border-right: 1px solid #ddd;
}

.side-navbar ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.side-navbar li {
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.side-navbar li:hover {
    background-color: #e0e0e0;
}

.side-navbar li.active {
    background-color: #007BFF;
    color: white;
}

/* 内容区域样式 */
.main-content {
    flex: 1;
    display: flex;
}

.content-container {
    flex: 1;
    padding: 20px;
}

.content {
    display: none;
}

.content.active {
    display: block;
}

/* 输入框样式 */
input[type="text"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 16px;
}

/* 按钮样式 */
button {
    padding: 8px 16px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 8px;
}

button:hover {
    background-color: #0056b3;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    margin-top: 16px;
}

th, td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

/* 分页样式 */
.pagination {
    margin-top: 16px;
}

.pagination a {
    padding: 8px 12px;
    margin: 0 4px;
    text-decoration: none;
    color: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #007BFF;
    color: white;
}

.pagination a.active {
    background-color: #007BFF;
    color: white;
}

/* 小屏幕样式 */
@media (max-width: 768px) {
    .side-navbar {
        display: none;
    }

    .content-container {
        margin-left: 0;
    }
}